package com.sskj.gocoin.v.activity;

import com.lzy.okgo.OkGo;
import com.lzy.okgo.model.Response;
import com.sskj.gocoin.m.HttpConfig;
import com.sskj.gocoin.m.bean.HttpData;
import com.sskj.gocoin.m.http.JsonCallBack;
import com.sskj.gocoin.p.base.BasePresenter;

/**
 * ProjectName：bfex
 * DESC: (类描述)
 * Created by 李岩 on 2018/6/29 0029
 * updateName:(修改人名称)
 * updateTime:(修改时间)
 * updateDesc:(修改内容)
 */
public class SecurityFailedPresenter extends BasePresenter<SecurityFailedActivity> {
    public void requestUserAssetList() {
        OkGo.<HttpData<String>>get(HttpConfig.BASE_URL + HttpConfig.SECURITY_FAILED)
                .execute(new JsonCallBack<HttpData<String>>(this) {
                    @Override
                    protected void _onSuccess(Response<HttpData<String>> response) {
                        HttpData<String> httpListData = response.body();
                        if (httpListData.getStatus() == 200) {
                            mView.updateView(httpListData.getData());
                        }
                    }
                });
    }
}
